Optimal. Leaf size=129 \[ -\frac {(c d-b e) \left (c d^2-e (b d-2 a e)\right ) x}{e^4}+\frac {\left (c^2 d^2+b^2 e^2-2 c e (b d-a e)\right ) x^2}{2 e^3}-\frac {c (c d-2 b e) x^3}{3 e^2}+\frac {c^2 x^4}{4 e}+\frac {\left (c d^2-b d e+a e^2\right )^2 \log (d+e x)}{e^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 129, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {712}
\begin {gather*} \frac {x^2 \left (-2 c e (b d-a e)+b^2 e^2+c^2 d^2\right )}{2 e^3}-\frac {x (c d-b e) \left (c d^2-e (b d-2 a e)\right )}{e^4}+\frac {\log (d+e x) \left (a e^2-b d e+c d^2\right )^2}{e^5}-\frac {c x^3 (c d-2 b e)}{3 e^2}+\frac {c^2 x^4}{4 e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 712
Rubi steps
\begin {align*} \int \frac {\left (a+b x+c x^2\right )^2}{d+e x} \, dx &=\int \left (\frac {(c d-b e) \left (-c d^2+e (b d-2 a e)\right )}{e^4}+\frac {\left (c^2 d^2+b^2 e^2-2 c e (b d-a e)\right ) x}{e^3}-\frac {c (c d-2 b e) x^2}{e^2}+\frac {c^2 x^3}{e}+\frac {\left (c d^2-b d e+a e^2\right )^2}{e^4 (d+e x)}\right ) \, dx\\ &=-\frac {(c d-b e) \left (c d^2-e (b d-2 a e)\right ) x}{e^4}+\frac {\left (c^2 d^2+b^2 e^2-2 c e (b d-a e)\right ) x^2}{2 e^3}-\frac {c (c d-2 b e) x^3}{3 e^2}+\frac {c^2 x^4}{4 e}+\frac {\left (c d^2-b d e+a e^2\right )^2 \log (d+e x)}{e^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 128, normalized size = 0.99 \begin {gather*} \frac {e x \left (6 b e^2 (-2 b d+4 a e+b e x)+c^2 \left (-12 d^3+6 d^2 e x-4 d e^2 x^2+3 e^3 x^3\right )+4 c e \left (3 a e (-2 d+e x)+b \left (6 d^2-3 d e x+2 e^2 x^2\right )\right )\right )+12 \left (c d^2+e (-b d+a e)\right )^2 \log (d+e x)}{12 e^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.75, size = 170, normalized size = 1.32
method | result | size |
default | \(\frac {\frac {c^{2} x^{4} e^{3}}{4}+\frac {\left (\left (b e -c d \right ) e^{2} c +e^{3} b c \right ) x^{3}}{3}+\frac {\left (\left (b e -c d \right ) b \,e^{2}+c e \left (2 e^{2} a -b d e +c \,d^{2}\right )\right ) x^{2}}{2}+\left (b e -c d \right ) \left (2 e^{2} a -b d e +c \,d^{2}\right ) x}{e^{4}}+\frac {\left (a^{2} e^{4}-2 d \,e^{3} a b +2 a c \,d^{2} e^{2}+b^{2} d^{2} e^{2}-2 d^{3} e b c +c^{2} d^{4}\right ) \ln \left (e x +d \right )}{e^{5}}\) | \(170\) |
norman | \(\frac {\left (2 a b \,e^{3}-2 a d \,e^{2} c -b^{2} d \,e^{2}+2 d^{2} e b c -c^{2} d^{3}\right ) x}{e^{4}}+\frac {c^{2} x^{4}}{4 e}+\frac {\left (2 a c \,e^{2}+b^{2} e^{2}-2 b c d e +c^{2} d^{2}\right ) x^{2}}{2 e^{3}}+\frac {c \left (2 b e -c d \right ) x^{3}}{3 e^{2}}+\frac {\left (a^{2} e^{4}-2 d \,e^{3} a b +2 a c \,d^{2} e^{2}+b^{2} d^{2} e^{2}-2 d^{3} e b c +c^{2} d^{4}\right ) \ln \left (e x +d \right )}{e^{5}}\) | \(174\) |
risch | \(\frac {c^{2} x^{4}}{4 e}+\frac {2 x^{3} b c}{3 e}-\frac {c^{2} d \,x^{3}}{3 e^{2}}+\frac {b^{2} x^{2}}{2 e}-\frac {x^{2} d b c}{e^{2}}+\frac {x^{2} a c}{e}+\frac {x^{2} d^{2} c^{2}}{2 e^{3}}+\frac {2 a b x}{e}-\frac {2 a c d x}{e^{2}}-\frac {b^{2} d x}{e^{2}}+\frac {2 b c \,d^{2} x}{e^{3}}-\frac {c^{2} d^{3} x}{e^{4}}+\frac {\ln \left (e x +d \right ) a^{2}}{e}-\frac {2 \ln \left (e x +d \right ) d a b}{e^{2}}+\frac {2 \ln \left (e x +d \right ) a c \,d^{2}}{e^{3}}+\frac {\ln \left (e x +d \right ) b^{2} d^{2}}{e^{3}}-\frac {2 \ln \left (e x +d \right ) d^{3} b c}{e^{4}}+\frac {\ln \left (e x +d \right ) c^{2} d^{4}}{e^{5}}\) | \(221\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 167, normalized size = 1.29 \begin {gather*} {\left (c^{2} d^{4} - 2 \, b c d^{3} e - 2 \, a b d e^{3} + {\left (b^{2} e^{2} + 2 \, a c e^{2}\right )} d^{2} + a^{2} e^{4}\right )} e^{\left (-5\right )} \log \left (x e + d\right ) + \frac {1}{12} \, {\left (3 \, c^{2} x^{4} e^{3} - 4 \, {\left (c^{2} d e^{2} - 2 \, b c e^{3}\right )} x^{3} + 6 \, {\left (c^{2} d^{2} e - 2 \, b c d e^{2} + b^{2} e^{3} + 2 \, a c e^{3}\right )} x^{2} - 12 \, {\left (c^{2} d^{3} - 2 \, b c d^{2} e - 2 \, a b e^{3} + {\left (b^{2} e^{2} + 2 \, a c e^{2}\right )} d\right )} x\right )} e^{\left (-4\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.23, size = 163, normalized size = 1.26 \begin {gather*} -\frac {1}{12} \, {\left (12 \, c^{2} d^{3} x e - {\left (3 \, c^{2} x^{4} + 8 \, b c x^{3} + 24 \, a b x + 6 \, {\left (b^{2} + 2 \, a c\right )} x^{2}\right )} e^{4} + 4 \, {\left (c^{2} d x^{3} + 3 \, b c d x^{2} + 3 \, {\left (b^{2} + 2 \, a c\right )} d x\right )} e^{3} - 6 \, {\left (c^{2} d^{2} x^{2} + 4 \, b c d^{2} x\right )} e^{2} - 12 \, {\left (c^{2} d^{4} - 2 \, b c d^{3} e - 2 \, a b d e^{3} + {\left (b^{2} + 2 \, a c\right )} d^{2} e^{2} + a^{2} e^{4}\right )} \log \left (x e + d\right )\right )} e^{\left (-5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.24, size = 143, normalized size = 1.11 \begin {gather*} \frac {c^{2} x^{4}}{4 e} + x^{3} \cdot \left (\frac {2 b c}{3 e} - \frac {c^{2} d}{3 e^{2}}\right ) + x^{2} \left (\frac {a c}{e} + \frac {b^{2}}{2 e} - \frac {b c d}{e^{2}} + \frac {c^{2} d^{2}}{2 e^{3}}\right ) + x \left (\frac {2 a b}{e} - \frac {2 a c d}{e^{2}} - \frac {b^{2} d}{e^{2}} + \frac {2 b c d^{2}}{e^{3}} - \frac {c^{2} d^{3}}{e^{4}}\right ) + \frac {\left (a e^{2} - b d e + c d^{2}\right )^{2} \log {\left (d + e x \right )}}{e^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.35, size = 180, normalized size = 1.40 \begin {gather*} {\left (c^{2} d^{4} - 2 \, b c d^{3} e + b^{2} d^{2} e^{2} + 2 \, a c d^{2} e^{2} - 2 \, a b d e^{3} + a^{2} e^{4}\right )} e^{\left (-5\right )} \log \left ({\left | x e + d \right |}\right ) + \frac {1}{12} \, {\left (3 \, c^{2} x^{4} e^{3} - 4 \, c^{2} d x^{3} e^{2} + 6 \, c^{2} d^{2} x^{2} e - 12 \, c^{2} d^{3} x + 8 \, b c x^{3} e^{3} - 12 \, b c d x^{2} e^{2} + 24 \, b c d^{2} x e + 6 \, b^{2} x^{2} e^{3} + 12 \, a c x^{2} e^{3} - 12 \, b^{2} d x e^{2} - 24 \, a c d x e^{2} + 24 \, a b x e^{3}\right )} e^{\left (-4\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 185, normalized size = 1.43 \begin {gather*} x^2\,\left (\frac {b^2+2\,a\,c}{2\,e}+\frac {d\,\left (\frac {c^2\,d}{e^2}-\frac {2\,b\,c}{e}\right )}{2\,e}\right )-x\,\left (\frac {d\,\left (\frac {b^2+2\,a\,c}{e}+\frac {d\,\left (\frac {c^2\,d}{e^2}-\frac {2\,b\,c}{e}\right )}{e}\right )}{e}-\frac {2\,a\,b}{e}\right )-x^3\,\left (\frac {c^2\,d}{3\,e^2}-\frac {2\,b\,c}{3\,e}\right )+\frac {\ln \left (d+e\,x\right )\,\left (a^2\,e^4-2\,a\,b\,d\,e^3+2\,a\,c\,d^2\,e^2+b^2\,d^2\,e^2-2\,b\,c\,d^3\,e+c^2\,d^4\right )}{e^5}+\frac {c^2\,x^4}{4\,e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________